﻿using System.Windows.Media;
using Microsoft.Phone.Maps.Controls;

namespace Wp8nl.MapBinding
{
  public class MapPolylineDrawer : MapShapeDrawer
  {
    public MapPolylineDrawer()
    {
      Color = Colors.Black;
      Width = 5;
    }

    public override MapElement CreateShape(object viewModel, GeoCoordinateCollection path)
    {
      return new MapPolyline { Path = path, StrokeThickness = Width, StrokeColor = Color, StrokeDashed = StrokeDashed };
    }
  }
}
